import http from '@/utils/request.js'

//获取学员列表
/**
 * 
 * @param {Object} params 
 * @returns 
 */
export const getStuListApi = (params) => http.get('/students/getstulist',{
    params
})

//增加学员信息

export const addStuApi = (data) => http.post('/students/addstu',data)

//删除学员信息

export const delStuApi = (sId) => http.get('/students/delstu?sId='+sId)

//修改学员信息

export const updateStuApi = (data) => http.post('/students/updatestu',data)

//搜索学员信息

export const searchStuApi = params => http.get('/students/searchstu', {
    params
})

//上传学员头像

export const uploadStuImgApi = (data) => http.post('/students/uploadStuAvatar',data)